#!/bin/bash
function printit(){
echo "you want is:$1"
}

case $1 in
"name")
printit 1
;;
"phone")
printit 2
;;
*)
printit n
;;
esac
